package engine.logic.walk.Astar
{    
	public class Node 
	{ 
		public var x:int; 
		public var y:int; 
		public var f:Number;
		public var g:Number; 
		public var h:Number; 
		public var walkable:Boolean=true;
		public var parent:Node;
		public var walkParent:Node;
		public var costMultiplier:Number=1.0;
		public var hasGrapAround:Boolean=false;
		
		public function Node(x:int, y:int) 
		{ 
			this.x=x; 
			this.y=y; 
		}
		
		public function toString():String
		{   
			return "x=" + this.x.toString() + ",y=" + this.y.toString() + ",g=" + this.g.toFixed(1) + ",h=" + this.h.toFixed(1) + ",f=" + this.f.toFixed(1); 
		} 
	}
}